package com.example.repair.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.repair.R;
import com.example.repair.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class AboutActivity extends BaseActivity {

    @Override
    protected int getLayout() {
        return R.layout.activity_about;
    }

    @Override
    protected void initView() {
        ButterKnife.bind(this);

    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.back, R.id.xieyi, R.id.yinsi})
    public void onViewClicked(View view) {
        Intent intent;
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.xieyi:
                intent=new Intent(AboutActivity.this,WebActivity.class);
                intent.putExtra("name","用户协议");
                startActivity(intent);
                break;
            case R.id.yinsi:
                intent=new Intent(AboutActivity.this,WebActivity.class);
                intent.putExtra("name","用户隐私");
                startActivity(intent);
                break;
        }
    }
}
